

package com.kimo.shop.dao;

import java.util.List;

import com.kimo.shop.bean.model.Category;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

public interface CategoryMapper extends BaseMapper<Category> {

	List<Category> listByParentId(@Param("parentId") Long parentId, @Param("lang") Integer lang);
	List<Category> listThreeByParentId(@Param("parentId") Long parentId, @Param("lang") Integer lang);
	Long getParentCategoryByParentId(@Param("parentId") Long parentId);

	List<Category> categoryList(@Param("category") Category category);

	List<Category> listByLang(@Param("lang") Integer lang, @Param("maxGrade") Integer maxGrade,
							  @Param("parentId") Long parentId, @Param("status") Integer status, @Param("shopId") Long shopId);

	Category getCategory(@Param("categoryId") Long categoryId);

	Integer getCategoryName(@Param("category") Category category);
}
